#define _CRT_SECURE_NO_WARNINGS

#include <stdio.h>
#include <time.h>
#include <stdlib.h>
#include <windows.h>

#define ROW 9
#define COL 9
#define ROWS ROW + 2
#define COLS COL + 2
#define MINE_COUNT 10

void init_board(char board[ROWS][COLS], int rows, int cols, char ret);

void print_board(char board[ROWS][COLS], int row, int col);

void add_mine(char board[ROWS][COLS], int row, int col);

void down_mine(char mine[ROWS][COLS], char show[ROWS][COLS], int row, int col);